package deom.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/controller")
@RestController
public class ProController {
    @Value("${spring.datasoure.url}")
    private String url;

    @Value("${spring.datasource.username}")
    private String username;

    @Value("${spring.datasource.password}")
    private String password;

    @RequestMapping("/getUserName")
    public String getUsername() {
        System.out.println(username);
        return username;
    }
    @RequestMapping("/getPassword")
    public String getPassword() {
        System.out.println(password);
        return password;
    }
    @RequestMapping("/getUrl")
    public String print() {
        System.out.println(url);
        return url;
    }
}
